package sg.edu.nus.iss.club.gui;

import java.awt.Dimension;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.SwingConstants;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public abstract class RemoveDialog<T> extends OkCancelDialog {

	{
		//Set Look & Feel
		try {
			javax.swing.UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
		} catch(Exception e) {
			e.printStackTrace();
		}
	}

	protected JLabel jLabel1;
	public ClubApplication clubApplication;
	protected T deletedItem;
	
	public RemoveDialog(JFrame frame) {
		super(frame);
		initGUI();
	}
	
	public void setMessage(String msg) {
		this.jLabel1.setText(msg);
	}
	
	public void setDeletedItem(T deletedItem) {
		this.deletedItem = deletedItem;
	}
	
	protected void initGUI() {
		try {
			{
				getContentPane().setLayout(null);
			}
			{
				okButton = new JButton();
				getContentPane().add(okButton);
				okButton.setText("OK");
				okButton.setBounds(107, 78, 66, 23);
			}
			{
				cancelButton = new JButton();
				getContentPane().add(cancelButton);
				cancelButton.setText("Cancel");
				cancelButton.setBounds(183, 78, 84, 23);
			}
			{
				jLabel1 = new JLabel();
				getContentPane().add(jLabel1);
				jLabel1.setPreferredSize(new Dimension(1, 1));  
				jLabel1.setText("<html></html>");
				jLabel1.setBounds(10, 11, 343, 56);
				jLabel1.setVerticalTextPosition(SwingConstants.TOP);
				jLabel1.setVerticalAlignment(SwingConstants.TOP);
			}
			this.setSize(379, 151);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
